package com.woniuxy.ann;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Class
 * <P> TODO:
 * <P> Date: 2022/4/21:16:37
 * <P> Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
public class Test implements Cloneable {

    @MyDictCode("REGION")
    @MyExcel(name = "区域", value = {"1=华南区域", "2=东北区域", "3=西南区域"})
    private String region;

    @MyDictCode("CONDITION")
    @MyExcel(name = "成色", value = {"1=华南区域", "2=东北区域", "3=西南区域"})
    private String condition;


    @MyDictCode(value = "region",isSon = true)
    @MyExcel(name = "成色", value = {"1=华南区域", "2=东北区域", "3=西南区域"})
    private String warehome;

//    @Override
//    protected Test clone() {
//        Test test = null;
//
//        try {
//            test = (Test) super.clone();
//        } catch (CloneNotSupportedException e) {
//            e.printStackTrace();
//        }
//        return test;
//    }


//    @Override
//    protected Test clone() {
//        try {
//            return (Test) super.clone();
//        } catch (CloneNotSupportedException e) {
//            e.printStackTrace();
//            return null;
//        }
//    }

    @Override
    protected Test clone() throws CloneNotSupportedException {
        return (Test) super.clone();
    }
}
